package com.company.cloud.product.modules.mgr.controller.req;

import java.math.BigDecimal;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ProductStockOutSaveParamItem {


	  @ApiModelProperty(value = "商品编号" ,required = true)
	  @NotEmpty(message = "#商品编号不能为空")
	  private String productNo;
	
	  @ApiModelProperty(value = "SKU商品号" ,required = true)
	  @NotEmpty(message = "#SKU商品号不能为空")
	  private String skuNo;
	  
	  @ApiModelProperty(value = "库存数量",required = true)
	  @NotNull(message = "#库存数量不能为空")
	  @Min(message = "#最小库存数量1",value = 1)
	  @Max(message = "#最大库存数量9999999",value = 9999999)
	  private BigDecimal quantity;
	  
	  public ProductStockOutSaveParamItem(String productNo,String skuNo,BigDecimal quantity) {
		  this.productNo=productNo;
		  this.skuNo=skuNo;
		  this.quantity=quantity;
	  }
	  
	  public ProductStockOutSaveParamItem() {
		  
	  }
	  
}
